package com.hong.controller;

import com.hong.api.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author jiaohongtao
 * @version 1.0
 * @since 2021年02月04日
 */
@RestController
public class RequestTestController {
    @GetMapping("/getRequestData")
    public CommonResult<String> getRequestData() {
        return CommonResult.success("haha", "成功");
    }

    @GetMapping("/getWithParams")
    public CommonResult<String> getWithParams(String name) {
        return CommonResult.success("haha:" + name, "成功");
    }
}
